package com.goodwill.androidtest.list_test;


import java.io.Serializable;

public class City implements Serializable /*Cloneable*/ {
    private static final long serialVersionUID = -7622835197591599330L;
    private String name;
    private String address;

    public City() {
    }

    public City(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "City{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

//    @Override
//    public City clone() {
//        City city = null;
//        try {
//            city = (City) super.clone();   //浅复制
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//        }
////        assert student != null;
//        //student.address = (Address) address.clone();   //深度复制
//        return city;
//    }
}
